FROM java:8-jre
MAINTAINER Tanweiping <tanweiping1990@163.com>

ADD ./build/libs/dfs-server-1.0-SNAPSHOT.jar /app/

#CMD ["gradle", "clean", "bootJar"]

#CMD ["mv","/app/zuulCenter-1.0-SNAPSHOT.jar","./app/zuulCenter.jar"]

CMD ["java", "-Xmx200m", "-jar", "/app/dfs-server-1.0-SNAPSHOT.jar"]

RUN  echo "Asia/Shanghai" > /etc/timezone
RUN  dpkg-reconfigure -f noninteractive tzdata

EXPOSE 8991